import store from '../../../vuex/store'
import navMenu from './common/nav-menu/nav-menu.vue'
import { alert } from 'vue-strap'
import { setPayType } from '../../../vuex/action.js'

export default {
	name: 'HkPay',
	data() {
		return {
      isActive: 0
    }
	},
  props: ['type'],
  methods: {
    toogleMenuActive(name) {
      this.isActive = name
    }
  },
	components: {
		'vue-alert-msg': alert,
    'nav-menu': navMenu
	},
	store,
	vuex: {
    actions: {
      xSetPayType: setPayType
    },
		getters: {
			msg: state => state.msg,
			menu: state => state.menuList.portfolio
		}
	},
  ready() {
    this.xSetPayType(this.type)
  }
}
